package service;

import dao.ScheduleDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Schedule;

import java.util.List;
@Service
public class ScheduleServiceImpl implements ScheduleService {
    @Autowired
    private ScheduleDAO dao;
    @Override
    public List<Schedule> queryByDate() {
        return dao.queryAll();
    }

    @Override
    public List<Schedule> queryByRoom(Schedule schedule) {
        return dao.queryByRoom(schedule);
    }
}
